Prev | Next

Flagpoles - Placing A Flag In A Scene

<< | >>

In Sync: Animating The Flagpole

Overview

In this section, you'll see how the locked points on a flag remain attached to an animated flagpole while the rest of the flag follows. You'll also learn how to use the Click To Update Tracking button to keep your flag in sync with the flagpole animation.

Setting Up The Scene

Let's say you're creating an animation of a flagpole that waves back and forth. You'll need to animate the pole and then attach a flag to it. Follow the instructions below to get your scene ready.

  1. Open the "Animated Flagpole.aep" project. This scene has a flagpole that rotates back and forth.



    Let's add a flag to the scene and attach it to the flagpole.
  2. Create a new Solid (Layer> New> Solid) for the flag effect. Name the Solid "Animated Flag." Make sure the Solid is the same size as the Comp by clicking the "Make Comp Size" button. Make the Solid white.

    Click the OK button to create the Solid and add it to the project. Your scene will now be covered by the new Solid.
  3. Add the 3D Flag effect to the new Solid by selecting Effect> Zaxwerks> 3D Flag.



    The Solid will turn into a flag. There is an image of a British flag in our project already. Let's make the flag use that picture for its coloring and its size.
  4. In the Effect Controls window, find the Color From Layer parameter and select "United Kingdom.jpg." Your flag will now look like a British flag.



    Let's attach the flag to the flagpole.
  5. In the Effect Controls window. locate the Attach To Layer parameter and select "Long Flagpole.tga."

    The flag is now attached to the flagpole, but it needs to be aligned.

  6. In the Effect Controls window, find the Offset X parameter and increase the value until the left edge of the flag is aligned with the center of the pole. We want the locked points on the flag to line up with the pole. The value should be around 200.
  7. Now find the Offset Y parameter and increase the value until the flag sits just below the top of the pole. The value should be around 600.



Do a RAM Preview (Composition> Preview> RAM Preview) to see the flag animate with the pole. Majestic, isn't it? Notice how the locked points stay attached to the animated pole while the rest of the flag follows.

Adding Another Keyframe

This animation has three keyframes. The pole rotates left, then right. Let's make it rotate to the left again, causing the pole to be straight up at the end of the animation.

  1. Select the "Long Flagpole.tga" layer in the Timeline window. This is the animated flagpole. It has Orientation keyframes at times 0 seconds, 2 seconds, and 4 seconds.
  2. Set the Time marker to time 5 seconds.
  3. Using the Rotation tool, rotate the flag to the left until it's straight up. You should rotate the Z value back to 0 degrees. A keyframe will be automatically set since we changed the value of the Orientation.

    We've added a keyframe, but the flag has not kept up with the flagpole as we've rotated it.



    We need to tell the flag to update based on the new animation. It's time to use the Click To Update Tracking button.

    Updating Tracking

    There is a mismatch between the location of the flagpole and the flag. Let's correct this problem.

    1. Select the "Animated Flag" layer in the Timeline window.
    2. Open the Effect Controls window (Effect> Effect Controls) and find the Click To Update Tracking button. Click the Click To Update Tracking button.



      The flag will now snap into place, in its correct position and orientation.
    3. Play the new animation from the start by doing a RAM Preview (Composition> Preview> RAM Preview). Watch the flag rotate back and forth.

    The Click To Update Tracking Button

    The Click To Update Tracking button is used to synchronize a flag to its flagpole.

    When animating a flagpole, the 3D Flag plug-in isn't always notified when the flagpole has moved. Clicking the Click To Update Tracking button will tell the flag to get into its proper position.

    If you see that your flag is not in sync with your flagpole, click the Click To Update Tracking button.

    As you've been working with 3D Flag, you may have noticed that the flag can sometimes intersect itself, creating a flag that doesn't look very real. The next chapter, Self-Collision - Adding Realism will discuss a way to make your flag scenes more realistic.